﻿using mds.BaseFrameModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;

namespace mds.DFSService
{
    [ServiceContract(Namespace = "mds.DFSService.ServiceContract.DistributedFileProvider")]
    public interface IDistributedFileProvider
    {
        [OperationContract(Name = "Save")]
        OperationResult<DistributedFile> Save(string spaceKey, Guid fileId, string fileName, string fileSuffix, byte[] filedata, string fileType);

        [OperationContract(Name = "Delete")]
        OperationResult<bool> Delete(string spaceKey,Guid fileId);

        [OperationContract(Name = "GetFile")]
        OperationResult<DistributedFile> GetFile(string spaceKey, Guid fileId);

    }
}
